package com.xh.model.dto;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Tuple2<A, B> {
    private A left;
    private B right;

    public Tuple2() {
    }

    public static <A, B> Tuple2<A, B> of(A a, B b) {
        Tuple2<A, B> tuple2 = new Tuple2<>();
        tuple2.left = a;
        tuple2.right = b;
        return tuple2;
    }

}
